﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using GRPCService.Web.Services.ClockService;
using Microsoft.AspNetCore.Mvc;


namespace GRPCService.Web.Controllers
{
	public class HomeController : Controller
	{
		private IClockService Service { get; set; }
		public HomeController(IClockService service)
		{
			Service = service;
		}

		// GET: /<controller>/
		public string Index()
		{
			return Service.GetCurClock() ;
		}
	}
}
